<link href="~/css/InventoryCSS/inventory.css" rel="stylesheet" />
@model User.Models.TypesModels
@{
    ViewData["Title"] = "Inventory";
}
<div class="total" id="compile-body">
    <div class="userInfor" id="compile-title">
        <p>添加清单</p>
        <div >
            <div>
                <table>
                    @foreach (var item in Model.Inventory)
                    {
                        <tr>
                            <th>
                                <a href="/Matter/ShowMatter?userId=@Model.UserId&typeId=@Model.TypeId&inventoryId=@item.InventoryId">
                                    <h5 style="font-size:23px;">@item.InventoryName</h5>
                                </a>
                                <a class="edit" href="/Inventory/EditInventory?userId=@Model.UserId&typeId=@Model.TypeId&inventoryId=@item.InventoryId ">
                                   <h5 style="float:right;">编辑</h5>
                                </a>
                            </th>
                        </tr>
                    }
                </table>
            </div>
        </div>
    </div>
</div>
<h5 style="color:red;margin-left: 400px;">@ViewData["Message"]</h5>
<div>
    <form id="change-inventory" action="/Inventory/AddInventory?userId=@Model.UserId&typeId=@Model.TypeId" method="post">
        <input type="text" name="inventoryName" placeholder="添加清单,按Enter键完成" />
    </form>
 
</div>
<a href="/Type/AddType?"><h4>返回</h4></a>


